package com.example.springmybatis.mapper;

import com.example.springmybatis.entity.news;
import com.example.springmybatis.entity.news_categories;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface Newsmapper {
    @Select("select * from news")
    List<news> selectnewall();
    @Select("select * from news_categories")
    List<news_categories> selectnewcateall();
}
